﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRM.DAL.DAO;
using HRM.DAL.Gateway;
using HRM.DAL.Report;

namespace HRM.BLL
{
    public class PmManager
    {
        PmGateway gateway=new PmGateway();
        public bool SaveProjectManager( PM pManager)
        {
            EmployeeGateway empGateway=new EmployeeGateway();
            int empId = empGateway.GetEmployeeID(pManager.Employee.EmpCode);
            return gateway.SaveProjectManager(empId,pManager);
        }

        public List<ViewProjectManager> GetProjectManagers()
        {
           return gateway.GetProjectManagers();
        }

        public string DeletePm(int Id)
        {
            return gateway.DeletePm(Id);
        }


    }
}